﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Core;
using Crosland.Automotriz.Data.Dao.Linq;


namespace Crosland.Automotriz.Logic.Linq
{
    public class clsTh_Stock_Almacen_DetLogic
    {

        clsTh_Stock_Almacen_DetDAO stockAlmacenDAO = null;

        public IEnumerable<Object> Listar( String strNro_lote, int intTop)
        {
            stockAlmacenDAO = new clsTh_Stock_Almacen_DetDAO();
            try
            {
                return stockAlmacenDAO.Listar(strNro_lote, intTop);

            }
            catch (Exception ex)
            {

                throw new Automotriz.Logic.ControlExeption.DataException("Error en la aplicación ", ex);
            }


        }


        public IEnumerable<Object> listarAnios()
        {
            stockAlmacenDAO = new clsTh_Stock_Almacen_DetDAO();

            try
            {
                return stockAlmacenDAO.listarAnios();

            }
            catch (Exception ex)
            {

                throw new Automotriz.Logic.ControlExeption.DataException("Error en la aplicación ", ex);
            }
        
        }

    }
}
